package com.gp.tms.pojo;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author team
 * @since 2023-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Order对象", description="订单表")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单编号")
    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private Long orderId;

    @ApiModelProperty(value = "用户编号")
    private Long uid;

    @ApiModelProperty(value = "站点编号")
    private Integer siteId;

    @ApiModelProperty(value = "寄件人信息（引用地址薄表主键）")
    private Integer sender;

    @ApiModelProperty(value = "收件人信息（引用地址薄表主键）")
    private Integer recipient;

    @ApiModelProperty(value = "物品名称")
    private String itemName;

    @ApiModelProperty(value = "物品重量")
    private Float weight;

    @ApiModelProperty(value = "物品体积")
    private Float volume;

    @ApiModelProperty(value = "物品类型")
    private String type;

    @ApiModelProperty(value = "付款方式（1-寄付，2-到付）")
    private Integer paymentMethod;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "金额")
    private Float amount;

    @ApiModelProperty(value = "订单状态，0-已取消，1-未付款，2-已付款，3-处理中，4-已完成")
    private Integer orderStatus;


}
